package com.zh.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class htmlController {

    /**
     * @return
     * @Author zh
     * @Description 加入thymeleaf解析器后, 所有的前台页面默认templates/解析ftl文件
     * @Date 2020/5/14
     * @Param
     **/
    @RequestMapping(method = RequestMethod.GET, value = "static/hello1")
    public String login1() {
        return "hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "static/hello2")
    public String login2() {
        return "hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "static/html/hello1")
    public String login3() {
        return "html/hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "static/html/hello2")
    public String login4() {
        return "html/hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "temp/hello")
    public String login5() {
        return "hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "temp/hello1")
    public String login6() {
        return "login/hello";
    }

    @RequestMapping(method = RequestMethod.GET, value = "temp/hello2")
    public String login7() {
        return "login/hello";
    }


}
